<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.7.0" />

	<title>Class Mekayotl_tools_CountryData | nort</title>

	<script type="text/javascript" src="resources/combined.js?1481722677"></script>
	<script type="text/javascript" src="elementlist.js?1094816827"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?1567499433" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li><a href="package-App.html">App<span></span></a>
						<ul>
				<li><a href="package-App.Saas.html">Saas</a>
						</li>
				<li><a href="package-App.saas.html">saas</a>
						</li>
				<li><a href="package-App.SaaS.html">SaaS<span></span></a>
						<ul>
				<li><a href="package-App.saas.Logic.html">Logic</a>
						</li>
				<li><a href="package-App.SaaS.SaaS.html">SaaS</a>
						</li>
				<li><a href="package-App.Saas.Tables.html">Tables</a>
						</li>
				<li><a href="package-App.Saas.Vo.html">Vo</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-aqua.html">aqua<span></span></a>
						<ul>
				<li><a href="package-aqua.tools.html">tools<span></span></a>
						<ul>
				<li><a href="package-aqua.tools.Monitor.html">Monitor</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-flashservices.html">flashservices<span></span></a>
						<ul>
				<li><a href="package-flashservices.adapters.html">adapters</a>
						</li>
				<li><a href="package-flashservices.debug.html">debug</a>
						</li>
				<li><a href="package-flashservices.exception.html">exception</a>
						</li>
				<li><a href="package-flashservices.filters.html">filters</a>
						</li>
				<li><a href="package-flashservices.io.html">io</a>
						</li>
				<li><a href="package-flashservices.sql.html">sql</a>
						</li>
				<li><a href="package-flashservices.util.html">util</a>
						</li>
							</ul></li>
				<li class="active"><a href="package-Mekayotl.html">Mekayotl<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.core.html">core</a>
						</li>
				<li><a href="package-Mekayotl.database.html">database<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.database.dal.html">dal</a>
						</li>
				<li><a href="package-Mekayotl.database.mysql.html">mysql</a>
						</li>
				<li><a href="package-Mekayotl.database.sqlite.html">sqlite</a>
						</li>
							</ul></li>
				<li class="active"><a href="package-Mekayotl.tools.html">tools<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.tools.render.html">render<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.tools.render.html.html">html</a>
						</li>
							</ul></li>
				<li><a href="package-Mekayotl.tools.renders.html">renders</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-None.html">None</a>
						</li>
				<li><a href="package-PHP.html">PHP</a>
						</li>
				<li><a href="package-PHPMailer.html">PHPMailer</a>
						</li>
				<li><a href="package-Services.html">Services<span></span></a>
						<ul>
				<li><a href="package-Services.JSON.html">JSON</a>
						</li>
							</ul></li>
				<li><a href="package-Swift.html">Swift<span></span></a>
						<ul>
				<li><a href="package-Swift.ByteStream.html">ByteStream</a>
						</li>
				<li><a href="package-Swift.CharacterStream.html">CharacterStream</a>
						</li>
				<li><a href="package-Swift.Encoder.html">Encoder</a>
						</li>
				<li><a href="package-Swift.Events.html">Events</a>
						</li>
				<li><a href="package-Swift.KeyCache.html">KeyCache</a>
						</li>
				<li><a href="package-Swift.Mailer.html">Mailer</a>
						</li>
				<li><a href="package-Swift.Mime.html">Mime</a>
						</li>
				<li><a href="package-Swift.Plugins.html">Plugins</a>
						</li>
				<li><a href="package-Swift.Transport.html">Transport</a>
						</li>
							</ul></li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-Mekayotl_tools_Acl.html">Mekayotl_tools_Acl</a></li>
				<li class="active"><a href="class-Mekayotl_tools_CountryData.html">Mekayotl_tools_CountryData</a></li>
				<li><a href="class-Mekayotl_tools_Image.html">Mekayotl_tools_Image</a></li>
				<li><a href="class-Mekayotl_tools_Mailer.html">Mekayotl_tools_Mailer</a></li>
				<li><a href="class-Mekayotl_tools_Request.html">Mekayotl_tools_Request</a></li>
				<li><a href="class-Mekayotl_tools_Security.html">Mekayotl_tools_Security</a></li>
				<li><a href="class-Mekayotl_tools_Upload.html">Mekayotl_tools_Upload</a></li>
				<li><a href="class-Mekayotl_tools_Utils.html">Mekayotl_tools_Utils</a></li>
				<li><a href="class-Mekayotl_tools_utils_Conversion.html">Mekayotl_tools_utils_Conversion</a></li>
				<li><a href="class-Mekayotl_tools_utils_Numbers.html">Mekayotl_tools_utils_Numbers</a></li>
				<li><a href="class-Mekayotl_tools_Views.html">Mekayotl_tools_Views</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-Mekayotl.tools.html" title="Summary of Mekayotl\tools"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class Mekayotl_tools_CountryData</h1>


	<div class="description">
	
<p>Contiene una serie de funciones para proporcionar información de
países.</p>

	</div>









	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-Mekayotl.html">Mekayotl</a>\<a href="package-Mekayotl.tools.html">tools</a><br />

				<b>Copyright:</b>
				Copyright (c) 2008, <a href="http://www.aquainteractive.com">Aqua
Interactive</a><br />
				<b>Author:</b>
				Henry I. Galvez T. &lt;<a
href="mailto:alograg&#64;alograg.me">alograg&#64;<!---->alograg.me</a>&gt;<br />
		<b>Located at</b> <a href="source-class-Mekayotl_tools_CountryData.html#15" title="Go to source code">lib/php/mekayotl/tools/CountryData.php</a><br />
	</div>


	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="__construct" id="___construct">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___construct">#</a>
		<code><a href="source-class-Mekayotl_tools_CountryData.html#67" title="Go to source code">__construct</a>( <span>string <var>$country</var> = <span class="php-quote">'mx'</span></span>, <span>boolean <var>$autoInstall</var> = <span class="php-keyword1">TRUE</span></span> )</code>

		<div class="description short">
			
<p>Constructor del objeto del país</p>

		</div>

		<div class="description detailed hidden">
			
<p>Constructor del objeto del país</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$country</var></dt>
					<dd><code>string</code><br> Código de país según el [@link <a
href="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2</a>
ISO 3166-1 alpha-2]. Default: mx</dd>
					<dt><var>$autoInstall</var></dt>
					<dd><code>boolean</code><br> Si la base de datos debe ser instalada si no lo esta.</dd>
				</dl></div>



				<h4>TODO:</h4>
				<div class="list">
						Implementar el auto-instalador.<br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="changeCountry" id="_changeCountry">

		<td class="attributes"><code>
			 public 
			This
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_changeCountry">#</a>
		<code><a href="source-class-Mekayotl_tools_CountryData.html#83" title="Go to source code">changeCountry</a>( <span>string <var>$country</var></span> )</code>

		<div class="description short">
			
<p>Cambia el país del objeto.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Cambia el país del objeto.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$country</var></dt>
					<dd><code>string</code><br> Código de país según el [@link <a
href="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2</a>
ISO 3166-1 alpha-2]. Default: mx</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>This</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="hasCountry" id="_hasCountry">

		<td class="attributes"><code>
			 public static
			object
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_hasCountry">#</a>
		<code><a href="source-class-Mekayotl_tools_CountryData.html#125" title="Go to source code">hasCountry</a>( <span>string <var>$country</var></span> )</code>

		<div class="description short">
			
<p>Evalúa la existencia de la información del país.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Evalúa la existencia de la información del país.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$country</var></dt>
					<dd><code>string</code><br> Código de país según el [@link <a
href="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2</a>
ISO 3166-1 alpha-2]. Default: mx</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>object</code><br>Un objeto con la información del país<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getZipCodeCities" id="_getZipCodeCities">

		<td class="attributes"><code>
			 public 
			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getZipCodeCities">#</a>
		<code><a href="source-class-Mekayotl_tools_CountryData.html#145" title="Go to source code">getZipCodeCities</a>( <span>string|<code><a href="class-Mekayotl_database_WhereCollection.html">Mekayotl_database_WhereCollection</a></code> <var>$zipCode</var> = <span class="php-quote">'All'</span></span> )</code>

		<div class="description short">
			
<p>Obtiene la cuidad que contenga el código postal dado.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Obtiene la cuidad que contenga el código postal dado.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$zipCode</var></dt>
					<dd><code>string|<code><a href="class-Mekayotl_database_WhereCollection.html">Mekayotl_database_WhereCollection</a></code></code><br> Código postal o filtro de búsqueda</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>array</code><br>Un arreglo con todas objetos de ciudad que sean abarcado por el filtro.<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getZipCodeStates" id="_getZipCodeStates">

		<td class="attributes"><code>
			 public 
			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getZipCodeStates">#</a>
		<code><a href="source-class-Mekayotl_tools_CountryData.html#168" title="Go to source code">getZipCodeStates</a>( <span>string|Mekayotl_database_sqlite_WhereCollection <var>$zipCode</var> = <span class="php-quote">'All'</span></span> )</code>

		<div class="description short">
			
<p>Obtiene los estado que contengan el código postal</p>

		</div>

		<div class="description detailed hidden">
			
<p>Obtiene los estado que contengan el código postal</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$zipCode</var></dt>
					<dd><code>string|Mekayotl_database_sqlite_WhereCollection</code><br> Código postal o filtro de búsqueda</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>array</code><br>Un arreglo con todos objetos de estado que sean abarcado por el filtro.<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getCities" id="_getCities">

		<td class="attributes"><code>
			 public 
			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getCities">#</a>
		<code><a href="source-class-Mekayotl_tools_CountryData.html#191" title="Go to source code">getCities</a>( <span>string|Mekayotl_database_sqlite_WhereCollection <var>$state</var> = <span class="php-quote">'All'</span></span> )</code>

		<div class="description short">
			
<p>Obtiene las ciudades según código de estado.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Obtiene las ciudades según código de estado.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$state</var></dt>
					<dd><code>string|Mekayotl_database_sqlite_WhereCollection</code><br> Filtro de búsqueda</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>array</code><br>Un arreglo con todos objetos de ciudad que sean abarcado por el filtro.<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getStates" id="_getStates">

		<td class="attributes"><code>
			 public 
			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getStates">#</a>
		<code><a href="source-class-Mekayotl_tools_CountryData.html#213" title="Go to source code">getStates</a>( <span>string|Mekayotl_database_sqlite_WhereCollection <var>$state</var> = <span class="php-quote">'All'</span></span> )</code>

		<div class="description short">
			
<p>Obtiene los estados.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Obtiene los estados.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$state</var></dt>
					<dd><code>string|Mekayotl_database_sqlite_WhereCollection</code><br> Filtro de búsqueda</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>array</code><br>Un arreglo con todos objetos de estado que sean abarcado por el filtro.<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="matchZipCode" id="_matchZipCode">

		<td class="attributes"><code>
			 public 
			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_matchZipCode">#</a>
		<code><a href="source-class-Mekayotl_tools_CountryData.html#236" title="Go to source code">matchZipCode</a>( <span>string|<code><a href="class-Mekayotl_database_WhereCollection.html">Mekayotl_database_WhereCollection</a></code> <var>$text</var></span> )</code>

		<div class="description short">
			
<p>Obtiene los códigos postales según filtro.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Obtiene los códigos postales según filtro.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$text</var></dt>
					<dd><code>string|<code><a href="class-Mekayotl_database_WhereCollection.html">Mekayotl_database_WhereCollection</a></code></code><br> Filtro de búsqueda</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>array</code><br>Un arreglo con todos objetos de código postal que sean abarcado por el filtro.<br />
				</div>




		</div>
		</div></td>
	</tr>
	</table>







	<table class="summary" id="properties">
	<caption>Properties summary</caption>
	<tr data-order="dbAdapterGeneral" id="$dbAdapterGeneral">

		<td class="attributes"><code>
			public static
			<code><a href="class-Mekayotl_database_sqlite_Adapter.html">Mekayotl_database_sqlite_Adapter</a></code>
		</code></td>

		<td class="name">
				<a href="source-class-Mekayotl_tools_CountryData.html#49" title="Go to source code"><var>$dbAdapterGeneral</var></a>
		</td>
		<td class="value"><code></code></td>
		<td class="description"><div>
			<a href="#$dbAdapterGeneral" class="anchor">#</a>

			<div class="description short">
				
<p>Contiene el adaptador para obtener información de países.</p>

			</div>

			<div class="description detailed hidden">
				
<p>Contiene el adaptador para obtener información de países.</p>


					<h4>See</h4>
					<div class="list">
							<code><code><a href="class-Mekayotl_database_sqlite_Adapter.html">Mekayotl_database_sqlite_Adapter</a></code></code><br />
					</div>
			</div>
		</div></td>
	</tr>
	<tr data-order="hasCountry" id="$hasCountry">

		<td class="attributes"><code>
			public 
			boolean
		</code></td>

		<td class="name">
				<a href="source-class-Mekayotl_tools_CountryData.html#56" title="Go to source code"><var>$hasCountry</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">FALSE</span></code></td>
		<td class="description"><div>
			<a href="#$hasCountry" class="anchor">#</a>

			<div class="description short">
				
<p>Falso si no se tiene información del país.</p>

			</div>

			<div class="description detailed hidden">
				
<p>Falso si no se tiene información del país.</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="info" id="$info">

		<td class="attributes"><code>
			public 
			object
		</code></td>

		<td class="name">
				<a href="source-class-Mekayotl_tools_CountryData.html#61" title="Go to source code"><var>$info</var></a>
		</td>
		<td class="value"><code></code></td>
		<td class="description"><div>
			<a href="#$info" class="anchor">#</a>

			<div class="description short">
				
<p>Contiene la información base del país</p>

			</div>

			<div class="description detailed hidden">
				
<p>Contiene la información base del país</p>


			</div>
		</div></td>
	</tr>
	</table>



</div>

	<div id="footer">
		nort API documentation generated by <a href="http://apigen.org">ApiGen 2.7.0</a>
	</div>
</div>
</div>
</body>
</html>
